Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove advection from auxiliary quantities B_k #839

Merged
merged 22 commits into from
Sep 5, 2024

Conversation

dmontgomeryNREL
Copy link
Contributor

This PR includes the following:

  1. Fixed a minor typo in the FlowPastCylinder documentation.
  2. Updated the auxiliary quantities ($B_k$ in documented equations) so that they are no longer advected. These equations are identical to the advected quantities $A_k$. The new auxiliary quantities provide users the option to include state variables that are stationary in space. Since these equations were previously identical to the advected quantities, this should not negatively impact users.
  3. Added a test case in RegTests that illustrates how to utilize the advected and auxiliary quantities. I tested the updated code with Godunov, MOL, AMR, and a simple EB.

rho_As_and_Bs

2) Updated the auxiliary quantities (B_k in documented equations) so that they are no longer advected. We believe that these equations are identical to the advected quantities.  The new auxiliary quantities provide the option to include state variables that are stationary in space.
3) Added a test case that verifies the new B_k equations work with MOL, Godunov, and EB's.
Copy link
Contributor

@marchdf marchdf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like it

@baperry2
Copy link
Contributor

baperry2 commented Sep 3, 2024

Two things:

I am see some movement of one of the stationary scalars where it intersects the EB. Maybe something to do with state redistribution? But it isn't just immediately next to the surface.

Screenshot 2024-09-03 at 12 00 15 PM

Let's have this case run in the CI, similar to what we did for the flow over a cylinder case: #827 (review)

@dmontgomeryNREL
Copy link
Contributor Author

No more movement near the EB!
Screenshot 2024-09-05 at 9 06 34 AM

Source/Godunov.H Outdated Show resolved Hide resolved
…e loops in Godunov, set NUM_AUX = NUM_ADV = 2 in CMakeLists.txt for CI tests.
@@ -38,6 +38,9 @@ endif()
if(PELE_DIM EQUAL 2)
add_subdirectory(EB-FlowPastCylinder)
endif()
if(PELE_DIM EQUAL 2)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another nitpick: just merge this with the if dim=2 conditional immediately above.

@@ -255,7 +255,10 @@ add_test_r(eb-c10 EB-C10)
add_test_rv(eb-c11 EB-C11)
add_test_rv(eb-c12 EB-C12)
if(PELE_DIM EQUAL 2)
add_test_r(eb-flowpastcylinder-re500 EB-FlowPastCylinder)
add_test_r(eb-flowpastcylinder-re500 EB-FlowPastCylinder) #
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and here. Also remove the #

@dmontgomeryNREL
Copy link
Contributor Author

I removed $\rho$ from the auxiliary quantity equation altogether after discussing a problem with @baperry2 . The new equation is simply $\frac{\partial B_k}{\partial t} = S_{ext,B_k}$. I verified the implementation for a simple exponential decay source term at a single point in space.
Figure_1

@baperry2 baperry2 enabled auto-merge (squash) September 5, 2024 21:32
@baperry2 baperry2 merged commit d7cf3a9 into AMReX-Combustion:development Sep 5, 2024
14 checks passed
@dmontgomeryNREL dmontgomeryNREL deleted the rmAdvFromBks branch September 6, 2024 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants